import $ from 'jquery'
import 'multiple-select/dist/multiple-select.min.css'
import 'multiple-select'
import 'multiple-select/dist/locale/multiple-select-zh-CN.min.js'
$.fn.multipleSelect.locales['zh-CN'] = $.fn.multipleSelect.locales['zh'] = {
  formatSelectAll () {
    return '[全选]'
  },
  formatAllSelected () {
    // return '已选择所有记录'
    return '已选择所有'
  },
  formatCountSelected (count, total) {
    // return `已从${total}条记录中选择${count}条`
    return `已选择${count}条`
  },
  formatNoMatchesFound () {
    return '没有找到记录'
  }
}
$.extend($.fn.multipleSelect.defaults, $.fn.multipleSelect.locales['zh-CN'])
